#include "inter.h"
#include "ui_inter.h"
#include"form.h"
#include"chessplay2.h"
#include<QPixmap>
#include<QPainter>
#include<QString>
#include<QPaintEvent>
inter::inter(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::inter)
{
    ui->setupUi(this);
    setMinimumSize(600,550);
   setMaximumSize(600,550);
    setWindowTitle("五子棋世界欢迎您！");

}

inter::~inter()
{
    delete ui;
}
void inter::on_pushButton_2_clicked(){
    this->close();


    f=new Form();
    f->show();

}

void inter::on_pushButton_clicked(){
    this->close();


    c=new chessplay2();
    c->show();


}
void inter::paintEvent(QPaintEvent*){
    QPainter painter(this);
    painter.drawRect(0,0,600,550);
    QPixmap pixmap(":/background/image/back1.jpg");

    painter.drawPixmap(0,0,600,550,pixmap);

}
